<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="/favicon.ico">
	<link rel="Shortcut Icon" href="/favicon.ico" />
	{include file="public/css"}
	<title>报名管理</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>首页<span class="c-gray en">&gt;</span>
		报名管理
		<span class="c-gray en">&gt;</span>
		报名{:empty($info)?'添加':'编辑'}
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<article class="page-container">
		<form class="form form-horizontal" id="form-article-add" action="{:url('exam_add')}" enctype="multipart/form-data" method="post">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>学员：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<select name="sid" class="input-text">
						<option></option>
						{volist name="student" id="s"}
						<option value="{$s.id}" {:$info.sid==$s.id?'selected':''}>{$s.name}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>考级：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<select name="cid" class="input-text">
						<option></option>
						{volist name="card" id="c"}
						<option value="{$c.id}" {:$info.cid==$c.id?'selected':''}>{$c.name}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>考试分组：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" name="groups" value="{$info.groups}" class="input-text">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>考试编号：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" name="num" value="{$info.num}" class="input-text">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2">
					<span class="c-red">*</span>考试步伐：
				</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" name="step" value="{$info.step}" class="input-text">
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
					<input type="hidden" name="id" value="{$info.id}">
					<button class="btn btn-primary radius" type="submit"> 保存</button>
				</div>
			</div>
		</form>
	</article>
	<!--_footer 作为公共模版分离出去-->
	{include file="public/js"}
	<!--/_footer /作为公共模版分离出去-->
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript" src="/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<script type="text/javascript" src="/admin/lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/ueditor.all.min.js"></script>
	<script type="text/javascript" src="/admin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			//表单验证
			/*$("#form-article-add").validate({
				rules: {
					name:"required",
					age:"required",
					tel:"required",
					img:"required",
					idcard:"required"
				}
			});*/
			var ue = UE.getEditor('editor');
			$(".cardDel").click(function(){
				var id=$(this).attr('data-id');
				var com=layer.confirm('确定删除证书？',{btn:['确定','取消']},function(){
					layer.close(com);
					$.post("{:url('del')}",{sql:'student_card',id:id,img:'yes'},function(res){
						if (res.state==200) {
							layer.msg('删除成功',{icon:1,time:1500},function(){
								window.location.reload();
							})
						}else{
							layer.msg(res.msg,{icon:2,time:1500});
						}
					})
				})
			})
		});
		</script>
		<!--/请在上方写此页面业务相关的脚本-->
	</body>
</html>